import {z} from "zod";
import {EditUserSchema, LoginSchema, RegisterSchema} from "@/lib/zod/schema";

export type ActionState<T> = {
    code:number;
    msg: string;
    errors?:  Partial<Record<keyof T, Array<string>>>;
    input?: T
}


export type LoginForm = z.infer<typeof LoginSchema>;
export type RegisterForm = z.infer<typeof RegisterSchema>;

export type  EditUser = z.infer<typeof EditUserSchema>;

